Skip to content

Document Elasticsearch v9 support and v7.17 deprecation#8849

Open
lieut-data wants to merge 3 commits intomasterfrom
support-elasticsearch-v9
Open

Document Elasticsearch v9 support and v7.17 deprecation#8849
lieut-data wants to merge 3 commits intomasterfrom
support-elasticsearch-v9

Conversation

@lieut-data
Copy link
Copy Markdown
Member

Summary

  • Add Elasticsearch v9 as a supported search backend starting from Mattermost v11.7
  • Document that Elasticsearch v7.17 is no longer supported as of v11.7
  • Update version references and links across setup and requirements documentation

Test plan

  • Verify RST renders correctly, especially the new v9 tab and v8 note directive
  • Confirm all Elastic documentation links resolve correctly

Add Elasticsearch v9 as a supported search backend starting from
Mattermost v11.7, note that v7.17 is no longer supported, and update
version references across setup and requirements documentation.
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 2, 2026

Newest code from mattermost has been published to preview environment for Git SHA d71578b

@lieut-data lieut-data marked this pull request as ready for review April 7, 2026 20:47
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 7, 2026

Newest code from mattermost has been published to preview environment for Git SHA 9ecfc75

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Apr 7, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: b43a8eef-f555-4927-b398-8dc9f2a6c3fb

📥 Commits

Reviewing files that changed from the base of the PR and between 9ecfc75 and 0b16290.

📒 Files selected for processing (2)
  • source/administration-guide/scale/elasticsearch-setup.rst
  • source/deployment-guide/software-hardware-requirements.rst
✅ Files skipped from review due to trivial changes (2)
  • source/administration-guide/scale/elasticsearch-setup.rst
  • source/deployment-guide/software-hardware-requirements.rst

📝 Walkthrough

Walkthrough

Updated documentation to recognize Elasticsearch v9 as supported/current, adjust references to Elasticsearch v8 (now 8.19), remove v7.17 support as of Mattermost v11.7, and make the action.destructive_requires_name directive version-agnostic across setup docs.

Changes

Elasticsearch Version Support Updates

Layer / File(s) Summary
Docs entry / Setup overview
source/administration-guide/scale/elasticsearch-setup.rst
Download/install step now references Elasticsearch v9 (current) and Elasticsearch v8 (8.19) instead of v8 (8.15) and v7.17+.
Configuration guidance
source/administration-guide/scale/elasticsearch-setup.rst
Removed the explicit “When using Elasticsearch v8” qualifier so action.destructive_requires_name: false is presented without tying it to a specific Elasticsearch major version.
Version support matrix
source/administration-guide/scale/enterprise-search.rst
Added Elasticsearch v9 tab noting support from Mattermost v11.7; updated v8 tab to reference v8.19 and recommend v9 upgrade; documented removal of v7.17 support as of v11.7; clarified AWS managed service client compatibility includes v8 and v9 constraints.
System requirements
source/deployment-guide/software-hardware-requirements.rst
Changed Enterprise multi-server Elasticsearch support statement from “v7.17+” to “v8.x and v9.x” and updated recommendation language to prefer Elasticsearch v9.x or AWS OpenSearch (removed the Mattermost v9.11 “from” constraint).

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and specifically summarizes the main changes in the pull request: documenting Elasticsearch v9 support and v7.17 deprecation across the documentation.
Description check ✅ Passed The description is directly related to the changeset, providing clear objectives about adding Elasticsearch v9 support, documenting v7.17 deprecation, and updating documentation references.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch support-elasticsearch-v9

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@source/administration-guide/scale/elasticsearch-setup.rst`:
- Line 46: Update the sentence that advises setting
action.destructive_requires_name to false in elasticsearch.yml to include an
explicit safety note: warn that this setting defaults to true in ES 8/9 and
disabling it permits dangerous wildcard deletes (e.g., DELETE * or DELETE .*)
that can remove system indices used for authentication; state when this
temporary change is required (only for the specific maintenance step described),
require restoring action.destructive_requires_name to true immediately after the
operation, and suggest the safer wildcard exclusion pattern "*,-.*" (exclude
system indices) as an alternative to turning the protection off.

In `@source/deployment-guide/software-hardware-requirements.rst`:
- Line 235: Update the sentence that currently reads "Elasticsearch v8.x and
v9.x are supported, and Elasticsearch v9.x or AWS OpenSearch is recommended" to
qualify v9 support by adding that Elasticsearch v9.x is supported beginning with
Mattermost v11.7 (e.g., "Elasticsearch v8.x is supported; Elasticsearch v9.x is
supported beginning with Mattermost v11.7, and Elasticsearch v9.x or AWS
OpenSearch is recommended"). Keep the existing :doc:`Learn more
</administration-guide/scale/enterprise-search>` link and adjust punctuation as
needed so the sentence remains grammatically correct.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: bb6b22b8-9355-48f2-9a3a-15003c1c0e3e

📥 Commits

Reviewing files that changed from the base of the PR and between 997af1e and 9ecfc75.

📒 Files selected for processing (3)
  • source/administration-guide/scale/elasticsearch-setup.rst
  • source/administration-guide/scale/enterprise-search.rst
  • source/deployment-guide/software-hardware-requirements.rst

Comment thread source/administration-guide/scale/elasticsearch-setup.rst
Comment thread source/deployment-guide/software-hardware-requirements.rst
@esethna esethna added the Do Not Merge/Awaiting Next Release To be merged with the next release (e.g. API documentation updates) label Apr 9, 2026
@esethna
Copy link
Copy Markdown
Contributor

esethna commented Apr 9, 2026

Adding the do not merge label so this can be rebased to the 11.7 branch when it's cut

Copy link
Copy Markdown
Member

@agarciamontoro agarciamontoro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Neat, thank you!

Copilot AI review requested due to automatic review settings May 11, 2026 12:58
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Updates Mattermost enterprise search documentation to reflect Elasticsearch v9 support (starting Mattermost v11.7) and the deprecation of Elasticsearch v7.17, with refreshed version references/links across related docs.

Changes:

  • Added an Elasticsearch v9 support path (Mattermost v11.7+) and clarified v7.17 deprecation.
  • Updated software/hardware requirements to reflect supported/recommended Elasticsearch versions.
  • Updated Elasticsearch setup instructions and Elastic documentation links to newer versions.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
source/deployment-guide/software-hardware-requirements.rst Updates supported/recommended Elasticsearch versions in requirements list.
source/administration-guide/scale/enterprise-search.rst Adds v9 tab, adds v7.17 deprecation note, and updates versioned links/text.
source/administration-guide/scale/elasticsearch-setup.rst Updates setup steps to reference v9/v8 and adjusts guidance text.

- Prometheus to track system health of your Mattermost deployment, through :doc:`performance monitoring feature </administration-guide/scale/deploy-prometheus-grafana-for-performance-monitoring>` available in Mattermost Enterprise.
- Grafana to visualize the system health metrics collected by Prometheus with the :doc:`performance monitoring feature </administration-guide/scale/deploy-prometheus-grafana-for-performance-monitoring>`. Grafana 5.0.0 and later is recommended.
- Elasticsearch to support highly efficient database searches in a cluster environment. Elasticsearch v7.17+ is supported, and Elasticsearch v8.x or AWS OpenSearch is recommended from Mattermost v9.11. :doc:`Learn more </administration-guide/scale/enterprise-search>`.
- Elasticsearch to support highly efficient database searches in a cluster environment. Elasticsearch v8.x and v9.x are supported, and Elasticsearch v9.x or AWS OpenSearch is recommended. :doc:`Learn more </administration-guide/scale/enterprise-search>`.

.. tab:: Elasticsearch v9

`Elasticsearch v9 <https://www.elastic.co/guide/en/elasticsearch/reference/current/elasticsearch-intro.html>`__ is supported from Mattermost v11.7. We recommend upgrading to Elasticsearch v9 for the latest features and security updates. See the `Elasticsearch upgrade <https://www.elastic.co/guide/en/elasticsearch/reference/current/setup-upgrade.html>`_ documentation for upgrade details, and see the :doc:`Elasticsearch setup </administration-guide/scale/elasticsearch-setup>` documentation for details on configuring your Mattermost deployment to use Elasticsearch.
We highly recommend that you set up Elasticsearch server on a dedicated machine separate from the Mattermost Server.

1. Download and install the latest release of `Elasticsearch v8 <https://www.elastic.co/guide/en/elasticsearch/reference/8.15/install-elasticsearch.html>`_, or `Elasticsearch v7.17+ <https://www.elastic.co/guide/en/elasticsearch/reference/7.17/install-elasticsearch.html>`_. See the Elasticsearch documentation for installation details.
1. Download and install the latest release of `Elasticsearch v9 <https://www.elastic.co/guide/en/elasticsearch/reference/current/install-elasticsearch.html>`_ or `Elasticsearch v8 <https://www.elastic.co/guide/en/elasticsearch/reference/8.19/install-elasticsearch.html>`_. See the Elasticsearch documentation for installation details.
@github-actions
Copy link
Copy Markdown
Contributor

Newest code from mattermost has been published to preview environment for Git SHA 0b16290

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Do Not Merge/Awaiting Next Release To be merged with the next release (e.g. API documentation updates)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants